package com.raising.framework.service;

import com.raising.framework.id.IdUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

/**
 * Service基类
 * 
 * @author gaoy
 */
@Transactional(readOnly = true,rollbackFor = Exception.class)
public abstract class BaseService {

	protected Logger logger = LoggerFactory.getLogger(getClass());


	/**
	 * 获取ID
	 * @author GaoYuan
	 * @date 2018/6/15 上午11:16
	 */
	protected String nextId(){
		return IdUtils.nextId();
	}

}

